home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / fscheck / RCS / fscheck.test,v < prev    next >
Encoding:
Text File  |  1989-02-28  |  2.8 KB  |  101 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     89.02.28.12.25.11;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @testing description
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Converted to new C library, added lots of new functionality
  24. @
  25. text
  26. @The following is a list of the test cases that fscheck was run on. After each
  27. error in the file system is the correction that fscheck made.
  28.  
  29.     1 allocated file descriptor marked free in descriptor bitmap
  30.     bitmap corrected
  31.     2 free file descriptor marked allocated in descriptor bitmap
  32.     bitmap corrected
  33.     3 allocated data block marked free in data block bitmap
  34.     bitmap corrected
  35.     4 free data block marked allocated in data block bitmap
  36.     bitmap corrected
  37.     5 file descriptor with invalid magic number
  38.     descriptor marked free in bitmap
  39.     6 file with incorrect link count
  40.     link count set to value determined by traversing directory tree
  41.     7 file with size < data blocks pointed to by descriptor
  42.     size adjusted
  43.     8 file with incorrect block count
  44.     block count corrected
  45.     9 directory with hole
  46.     hole filled in with empty entries
  47.     10 invalid index in indirect block
  48.     hole created
  49.     11 invalid direct block number
  50.     hole created
  51.     12 invalid indirect block number
  52.     hole created
  53.     13 fragment that is not last block in file
  54.     block of data starting at fragment copied to another block
  55.     14 part of a block shared with another file
  56.     block copied
  57.     15 direct block shared with another file
  58.     block copied
  59.     16 block 0 in something other than the root directory
  60.     block copied
  61.     17 doubly indirect block shared with another file
  62.     block and all sub-blocks copied
  63.     18 doubly indirect block shared, but block contains invalid index
  64.     hole created
  65.     19 unreferenced file
  66.     added to lost+found
  67.     20 unreferenced directory
  68.     added to lost+found
  69.     21 empty directory 
  70.     changed to a file
  71.     22 root directory marked free
  72.     root reconstructed
  73.     23 root directory is a file
  74.     root reconstructed
  75.     24 root fd zeroed and block 0 zeroed
  76.     root reconstructed
  77.     25 directory with invalid record length
  78.     record length corrected
  79.  
  80. Notes:
  81.     sharing was tested for both deleting and copying blocks
  82.  
  83. There are some configurations of files that are somewhat uncommon and may
  84. pose a problem for fscheck. The following were tested to make sure fscheck
  85. does not modify them.
  86.     1 file with hole
  87.     2 empty file
  88.     3 file with size > data blocks
  89.  
  90.  
  91. Fscheck has a number of command line options. The following were tested.
  92. The following functionality of fscheck was tested
  93.     1 initialize bad block file descriptor
  94.     2 update host id
  95.     3 output copied to file
  96.     4 output copied to file on same partition (file empty)
  97.     5 output copied to file on same partition (file not empty)
  98.     6 change output buffer size
  99.     7  heap size limited
  100. @
  101.